/*
package com.xiaoluyy.demo.config;

import com.xiaoluyy.service.http.jetty.LaunchJettyInEmbeddedMode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

*/
/**
 * Http service configuration
 *//*

@Configuration
public class HttpServiceConfig {

    @Value("${http.service.port}")
    private int port;
    @Value("${http.service.scanpackages}")
    private String scanPackages;
    @Autowired
    ApplicationContext context;

    @Bean(name = "jettyServer",initMethod = "startup", destroyMethod = "shutdown")
    public LaunchJettyInEmbeddedMode jettyServer() {
        LaunchJettyInEmbeddedMode launchJettyInEmbeddedMode = new LaunchJettyInEmbeddedMode();
        launchJettyInEmbeddedMode.setPort(port);
        launchJettyInEmbeddedMode.setContext(context);
        launchJettyInEmbeddedMode.setScanPackages(scanPackages.split(","));
        return launchJettyInEmbeddedMode;
    }

}
*/
